package com.datang.litejvm;

public class EmployeeV2 {
    private int age;

    public EmployeeV2(int age) {
        this.age = age;
    }

    public void test() {
        if (this.age > 18) {
            System.out.println("是成年人");
        } else {
            System.out.println("是童工");
        }
    }

    public static void main(String[] args) {
        EmployeeV2 p = new EmployeeV2(19);
        p.test();
    }
}